<!DOCTYPE html>
<html class="pixel-ratio-1" style="background-color: #f1f1f1">
    <head>
        <meta charset="utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />
        <meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate" />
        <meta name="viewport" content="width=375,user-scalabe=no" />
        <meta http-equiv="pragma" content="no-cache" />
        <meta http-equiv="expires" content="0" />
        <script src="../../../public/vendor/flexible/flexible.js"></script>
        <title>生物安全审查查看</title>
        <link rel="stylesheet" type="text/css" href="../../../public/vendor/weui/weui.min.css" />
        <link rel="stylesheet" type="text/css" href="../../../public/css/common.css" />
        <link rel="stylesheet" type="text/css" href="../../../public/css/iconfont/iconfont.css" />
        <link rel="stylesheet" href="../../../public/vendor/weui/jquery-weui.css" />
        <link rel="stylesheet" href="../../../public/vendor/select2/select2.css" />
        <link rel="stylesheet" href="../../../public/css/features/biosafety/auditmain.css" />

        <script id="details-template" type="text/x-template">
            {{~ it.array :value:index}}
            {{? it.track==false}}
            <div class="report-contents-item-box">
                <div class="weui-cell" style="padding: 10px 10px;">
                    <strong>审查项内容({{=value.weight}}分)</strong>
                </div>
                <div style="padding: 1px 20px;">
                    {{=value.text}}
                </div>
                <div style="padding: 10px 10px;text-align: center;">
                    <span style="float: left;"><strong>扣分</strong>：{{=value.deduct || ''}}分</span>
                    <span style="float: right;"><strong>期限日期</strong>：{{=value.timeLimit==null?"":moment(value.timeLimit).format('YYYY-MM-DD')}}</span>
                </div>
                <div style="padding-top: 25px;padding-left: 10px;">
                    <span><strong>负责人</strong>：{{=value.principal || ''}}</span>
                </div>
                <div style="padding: 10px 10px;">
                    <span><strong>扣分原因</strong>：</span>
                    <div>{{=value.reason || ''}}</div>
                </div>
                <div style="padding: 10px 10px;">
                    <span><strong>整改建议</strong>：</span>
                    <div>{{=value.suggestion || ''}}</div>
                </div>
                <div style="padding: 10px 10px;">
                    <span><strong>问题附件</strong>：</span>
                    <div class="weui-cells-border weui-cells_form" id="uploader{{=index+1}}" style="margin-top: -10px;">
                        <div class="weui-cell" style='padding: 16px 15px;'>
                            <div class="weui-cell__bd">
                                <div class="weui-uploader">
                                    <div class="weui-uploader__bd">
                                        <ul class="weui-uploader__files" id="uploaderFiles{{=index+1}}"></ul>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div style="display: flex; justify-content: flex-end">
                    <span style="color: #3a8ffe; text-decoration: underline; padding-bottom: 10px; padding-right: 10px;"
                          btn-type="rectify" data-seq="{{=value.seq}}" data-auditFormBillId="{{=value.auditFormBillId}}">提交整改</span>
                </div>
                {{~ value._result :_result:__index}}
                <div class="report-contents-item-box">
                    <div class="weui-cell" style="padding: 10px 10px;">
                        <span><strong>整改情况</strong>：{{=_result.result || ''}}</span>
                    </div>
                    <div style="padding: 10px 10px;">
                        <span><strong>反馈时间</strong>：</span>{{=_result.trackTime || ''}}
                    </div>
                    <div style="padding: 10px 10px;">
                        <span><strong>备注</strong>：</span>
                        <div>{{=_result.trackRemark || ''}}</div>
                    </div>
                    <div style="padding: 10px 10px;">
                        <span><strong>整改附件</strong>：</span>
                        <div class="weui-cells-border weui-cells_form" id="uploader{{=index+1+__index+1}}" style="margin-top: -10px;">
                            <div class="weui-cell" style='padding: 16px 15px;'>
                                <div class="weui-cell__bd">
                                    <div class="weui-uploader">
                                        <div class="weui-uploader__bd">
                                            <ul class="weui-uploader__files" id="trackImage{{=index+1+__index+1}}"></ul>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                {{~}}

                <div class="placeholder-view" style="width: 100%;height: 10px;">

                </div>
            </div>
            {{?}}
            {{? it.track==true}}
            <div class="report-contents-item-box">
                <div class="weui-cell" style="padding: 10px 10px;">
                    <strong>审查项内容({{=value.weight}}分)</strong>
                </div>
                <div style="padding-bottom: 10px; padding-left: 20px;">
                    {{=value.text}}
                </div>
            </div>
            {{?}}
            {{~}}
        </script>

        <script id="detailsThous-template" type="text/x-template">
            {{~ it.array :value:index}}
            {{? it.track==false}}
            <div class="report-contents-item-box">
                <div class="weui-cell" style="padding: 10px 10px;">
                    <strong>审查项内容({{=value.weight}}分)</strong>
                </div>
                <div style="padding: 1px 20px;">
                    {{=value.text}}
                </div>
                <p style="padding: 10px 10px;"><strong>得分</strong>：{{=Number(value.weight||0)-Number(value.deduct||0) || ''}}分</span></P>
                <P style="padding: 10px 10px;"><strong>备注</strong>：</P>
                <P style="padding: 1px 20px;">
                    {{=value.reason||''}}
                </P>
            </div>
            {{?}}
            {{~}}
        </script>
    </head>

    <body>
        <div id="main-detailaudit">
            <form id="detailaudit-form">
                <div class="weui-cells__group weui-cells__group_form">
                    <div id="spleplan-navbar" class="weui-navbar spleplan_nav">
                        <a class="weui-navbar__item weui-bar__item--on navbar-click" href="javascript:;" id="all-list" style="color: red">不合格项</a>
                        <a class="weui-navbar__item navbar-click" href="javascript:;" id="save-list" style="color: #11c26d">合格项</a>
                    </div>
                    <div class="report-contents-item-box">
                        <div class="weui-cell" style="padding: 10px">
                            <div class="weui-cell__hd">
                                <label class="weui-label">类型</label>
                            </div>
                            <div class="weui-cell__bd">
                                <input class="weui-input clearContent" type="text" id="type" readonly />
                            </div>
                        </div>
                        <div class="weui-cell" style="padding: 10px">
                            <div class="weui-cell__hd">
                                <label class="weui-label">审查点</label>
                            </div>
                            <div class="weui-cell__bd">
                                <input class="weui-input clearContent" type="text" id="adress" readonly />
                            </div>
                        </div>
                        <div class="weui-cell" style="padding: 10px">
                            <div class="weui-cell__hd">
                                <label class="weui-label">评分日期</label>
                            </div>
                            <div class="weui-cell__bd">
                                <input class="weui-input clearContent" type="text" id="scoreDate" readonly />
                            </div>
                        </div>
                        <div class="weui-cell" style="padding: 10px">
                            <div class="weui-cell__hd">
                                <label class="weui-label">评分人</label>
                            </div>
                            <div class="weui-cell__bd">
                                <input class="weui-input clearContent" type="text" id="scorer" readonly />
                            </div>
                        </div>
                        <div class="weui-cell" style="padding: 10px" id="totalDiv">
                            <div class="weui-cell__hd">
                                <label class="weui-label">总分</label>
                            </div>
                            <div class="weui-cell__bd">
                                <input class="weui-input clearContent" type="text" id="total" readonly />
                            </div>
                        </div>
                    </div>

                    <div id="detailsEntry"></div>
                </div>
                <div class="placeholder-view" style="width: 100%; height: 80px"></div>
                <div class="report-contents-item-box operation" id="twoButton">
                    <div class="weui-cell operation-child" style="display: flex; justify-content: space-between; padding: 0px; margin-left: -9px; height: 70px">
                        <a href="javascript:;" class="weui-btn weui-btn_primary" style="width: 95%; border-radius: 8px; margin-top: 0px" id="submitItemTab">返回列表</a>
                    </div>
                </div>
            </form>
        </div>

        <script type="text/javascript" src="../../../public/vendor/jquery/jquery.min.js"></script>
        <script type="text/javascript" src="../../../public/vendor/vue/vue.min.js"></script>
        <script type="text/javascript" src="../../../public/vendor/moment/moment.min.js"></script>
        <script type="text/javascript" src="../../../public/vendor/weui/weui.js"></script>
        <script type="text/javascript" src="../../../public/vendor/weui/jquery-weui.min.js"></script>
        <script type="text/javascript" src="../../../public/js/common/iosadaptation.js"></script>
        <script type="text/javascript" src="../../../public/js/config/utils.js"></script>
        <script type="module" src="../../../public/js/features/biosafety/detailsaudit.js"></script>
    </body>
</html>
